import request from "@/utils/request";

export const login = async (data) => {
  return request({
    url: "/lotterys/sys/login",
    method: "post",
    data,
  });
};

export const getInfo = async () => {
  return request({
    url: "/lotterys/sys/self",
    method: "get",
  });
};

export const register = async (data) => {
  return request({
    url: "/lotterys/sys/register",
    method: "post",
    data,
  });
};